tests: Don't test something we can't test
authorBenjamin Otte <otte@redhat.com>
Mon, 6 Feb 2012 20:24:59 +0000 (21:24 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 6 Feb 2012 20:53:35 +0000 (21:53 +0100)
When using GtkTreeStore, don't compute row positions assuming
everything's a list store, which is how get_row_start_for_index() works.

So instead, do a laxer check and don't insist on proper alignment.

gtk/tests/treeview-scrolling.c

index 9bbabbb6d0d78a07f1365e92f7265cb36164535d..52f18128c3ef3032b0e4a431a760339a30257e33 100644 (file)
@@ -1071,7 +1071,7 @@ test_bug111500 (ScrollFixture *fixture,
 
        gtk_tree_path_down (path);
 
-       scroll (fixture, path, TRUE, 0.5);
+       scroll (fixture, path, FALSE, 0.5);
        gtk_tree_path_free (path);
 }
 
@@ -1127,7 +1127,7 @@ test_bug111500_mixed (ScrollFixture *fixture,
 
        gtk_tree_path_down (path);
 
-       scroll (fixture, path, TRUE, 0.5);
+       scroll (fixture, path, FALSE, 0.5);
        gtk_tree_path_free (path);
 }